﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SDL3;
using static SDL3.SDL;

namespace 飞机大战.core
{
    internal abstract class ObjectWorld : ObjectScreen
    {
        protected SDL.FPoint world_position_ = new SDL.FPoint(); // 显示在世界中的物体

        public SDL.FPoint World_position_ { get { return world_position_; } set { world_position_ = value; screen_position_ = new SDL.FPoint() { X = world_position_.X - camera_position_.X, Y = world_position_.Y - camera_position_.Y }; } }
    }
}
